package com.csun.dsms.model.domain;

import com.csun.dsms.comment.core.mybatis.BaseEntity;
import lombok.Data;

import java.util.Date;
import javax.persistence.*;

@Data
@Table(name = "dsms_staff")
public class DsmsStaff extends BaseEntity {

    /**
     * 用户ID
     */
    @Column(name = "user_id")
    private Long userId;

    /**
     * 服务年限
     */
    @Column(name = "service_length")
    private Integer serviceLength;

    @Column(name = "service_times")
    private Integer serviceTimes;

    /**
     * 技能描述
     */
    private String skill;

    /**
     * 所属公司
     */
    @Column(name = "unit_id")
    private Long unitId;

    /**
     * 所属网格
     */
    @Column(name = "area_id")
    private Long areaId;

    /**
     * 审核状态 0-待审核 1-审核通过 2-审核不通过
     */
    private Integer apply;

    /**
     * 审核不通过原因
     */
    private String reason;

    /**
     * 备注
     */
    private String remark;

    @Transient
    private String areaName;

    @Transient
    private String staffName;
}